{include file="public/header"/}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" action="save" id="layer-form">
                        {if condition="$data['id']!=''"}<input type="hidden" value="{$data['id']}" name="id">{/if}
                        <!--表单项-->
                            
                        <div class="form-group">
                            <label class="col-sm-2 control-label">名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" value="{$data['name']}"  placeholder="请输入名称"
                                       >
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="remark" value="{$data['remark']}"  placeholder="请输入备注"
                                       >
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">执行时间</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="format" value="{$data['format']}"  placeholder="请输入执行时间">
                                <div>每分钟 【*】</div>
                                <div>每小时 某分 【*:i】</div>
                                <div>每天 某时:某分 【H:i】</div>
                                <div>每周-某天 某时:某分  0=周日 【@-w H:i】</div>
                                <div>每月-某天 某时:某分 【*-d H:i】</div>
                                <div>某月-某日 某时-某分 【m-d H:i】</div>
                                <div>某年-某月-某日 某时-某分 【Y-m-d H:i】</div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">执行方法</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="method" value="{$data['method']}"  placeholder="请输入执行方法">
                                <sapn>示例：app\common\cron\Test::test</sapn>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>
                            <div class="col-sm-10">
                                <select class="form-control m-b" name="status">
                                    <option value="0" {if condition="$data['status']==0"}selected="selected" {/if}>启用</option>
                                    <option value="1" {if condition="$data['status']==1"}selected="selected" {/if}>禁用</option>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <!--/表单项-->
                        {$html->submit_btn()}
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer"/}
